package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbGoodsDescMapper;
import com.dongdongshop.pojo.TbGoodsDesc;
import com.dongdongshop.service.TbGoodsDescServiceI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Service//交给spring容器 Component也可以代替
@Component
public class TbGoodsDescServiceImpl implements TbGoodsDescServiceI {

    @Autowired
    private TbGoodsDescMapper tbGoodsDescMapper;

    @Override
    public TbGoodsDesc findGoodsDescByGoodsId(Long goodsId) {
        return tbGoodsDescMapper.selectByPrimaryKey(goodsId);
    }
}
